<template>
  <div id="toHome" @click="toHome"><img src="@/assets/svg/toHome.svg" alt="" class="toHome-svg"></div>
</template>

<script>
export default {
  name: "ToHome",
  methods: {
    toHome() {
      this.$router.push("/Home");
    },
  },
}
</script>

<style scoped>
#toHome {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background-color: rgba(79,79,79,.14);
  z-index: 150;
  position: fixed;
  bottom: 100px;
  right: 20px;
  cursor: pointer;
  transition: all .3s ease
}

#toHome:hover {
  background-color: rgba(79,79,79,.34)
}

.toHome-svg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%)
}

</style>